// 在组件中使用mobx库
import {ComponentWithStore} from 'mobx-miniprogram-bindings'
import {demostore} from '../../store/demostore'
const computedbehavior=require('miniprogram-computed').behavior
ComponentWithStore({
behaviors:[computedbehavior],
storeBindings:{
  store:demostore,
  fields:{
    num:"num",
    num2:"num2",
    doubleNum:"doubleNum"
  },
  actions:{
    changenum:"changenum"
  }
}
})
// 第二种使用mbox库的方法，使用behavior
// import {behavior} from './behavior'
// Component({
//   behaviors:[behavior]
// })